from sqlalchemy import Boolean, Column, ForeignKey, Integer, String, DateTime, func
from sqlalchemy.ext.declarative import AbstractConcreteBase

from apps.utils.database import Base


class PublcCatModel(AbstractConcreteBase, Base):
    id = Column(Integer, primary_key=True, index=True)
    createtime = Column(DateTime, server_default=func.now(), comment='创建时间')
    updatetime = Column(DateTime, server_default=func.now(), onupdate=func.now(), comment='修改时间')

